package com.nmsl.system.domain;

import com.nmsl.common.core.domain.TreeEntity;
import com.nmsl.common.core.domain.entity.SysDept;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Data
public class JinDepartmentsDTO extends TreeEntity {
//    children
//:
//(5) [{…}, {…}, {…}, {…}, {…}]
//disabled
//:
//false
//id
//:
//101
//label
//:
//"深圳总公司"
    private String label;
    private Long id;
    private Boolean disabled;

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("label",getLabel())
                .append("id",getId())
                .append("disabled",getDisabled())
                .append("children",getChildren())
                .toString();
    }

}
